<?php

/**
 * Description of CheckinModelclass
 *
 * @author Mike Gao
 */
class CheckinModel extends CommonModel {
    public $_validate	=	array(
		//array('account','/^[a-z]\w{3,}$/i','帐号格式错误'),
		array('person_name','require','入住人必须填写！'),
		array('start_time','require','入住时间必须填写！'),
		array('end_time','require','离开时间必须填写！'),
                array('member_id','isMember','必须填写预订人，便于统计！',1,'callback'),
		);

    function isMember($member_id){
        if($member_id == 0)
            return false;
    }
}
?>
